<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

<head>

   <title>DREAM Toolbox - seedsample</title>

   <meta name="keywords" content="seedsample">

   <meta name="description" content="seedsample">

   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  
   <meta name="robots" content="index, follow">

   <meta author="Jurriaan H. Spaaks">

   <link type="text/css" rel="stylesheet" href="styles/dream_styles.css">
 
</head>



<body>
<a name="_top"></a>

<div class="linkheader">
<a href="matlab:edit(fullfile(dreamroot,'seedsample'))">View source code of the function <span style="font-family:monospace">seedsample()</span> in the MATLAB editor</a><br><br>
<a href="matlab:web(fullfile(dreamroot,'html','contents.html'),'-helpbrowser')">Toolbox contents</a>
</div>

<div class="spacer">
</div>


<div class="h1">
seedsample
</div>

<div class="h2">
Syntax
</div>

<div class="txt">
<pre>thisMachineSeed = seedsample(seedFileName)</pre>
</div>

<div class="h2">
Description
</div>

<div class="txt">
<p><span style="font-family:monospace">thisMachineSeed = seedsample(seedFileName)</span></p>
<p>
Initializes the pseudorandom number generator by reading from the file <span style="font-family:monospace">seedFileName</span>. Each line in this file must be formatted according to: <br><span style="font-family:monospace">&lt;computername&gt;,&lt;randomseed&gt;&lt;linebreak&gt;</span><br><span style="font-family:monospace">&lt;computername&gt;,&lt;randomseed&gt;&lt;linebreak&gt;<br>...</span><br><br>In case reading fails for some reason, a warning is issued and the random seed is initialized using the seconds field returned by <a href="matlab:doc matlab/clock"><span style="font-family:monospace">clock</span></a>.
</p>
<p>
Note that the computername may be retrieved from the underlying operating system's environmental variables list by:
</p>

<pre>
>>getenv(<span class="string">'COMPUTERNAME'</span>)
</pre>

</div>


<div class="footer">
</div>


<div class="spacer">
</div>


<a name="_bottom"></a>


</body>

</html>